﻿using UnityEngine;
using UnityEditor;
namespace MagicLib
{

    public class RestartProject
    {

        [MenuItem("MagicLib/RestartProject", false, 999)]
        private static void DoRestart()
        {
            EditorApplication.OpenProject(Application.dataPath.Replace("/Assets",string.Empty));
        }

    }
}